package com.myway.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class SysPortalNews {
    private Long id;

    private String titleCn;

    private String titleEn;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;

    private String operateIp;

    private String note;

    private String type;

    public SysPortalNews(Long id, String titleCn, String titleEn, Date operateTime, String operateIp, String note, String type) {
        this.id = id;
        this.titleCn = titleCn;
        this.titleEn = titleEn;
        this.operateTime = operateTime;
        this.operateIp = operateIp;
        this.note = note;
        this.type = type;
    }

    public SysPortalNews() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitleCn() {
        return titleCn;
    }

    public void setTitleCn(String titleCn) {
        this.titleCn = titleCn == null ? null : titleCn.trim();
    }

    public String getTitleEn() {
        return titleEn;
    }

    public void setTitleEn(String titleEn) {
        this.titleEn = titleEn == null ? null : titleEn.trim();
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public String getOperateIp() {
        return operateIp;
    }

    public void setOperateIp(String operateIp) {
        this.operateIp = operateIp == null ? null : operateIp.trim();
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }
}